import request from '@/api/http.js'

//获取工序数据
export const getProcess = (params) => {
  return request.post('api/Process/getPageData', params)
}

//获取产成品入库单列表
export const getProductionBatchWorkOrder = (params) => {
  console.log('changeWorkStatus发送参数:', params)
  const query = new URLSearchParams(params).toString();
  return request.get(`api/Production_ReportWorkOrder/GetProductionBatchWorkOrder?${query}`)
}

// 新增批量报工
export const addBatckReportWorkOrder = (params) => {
    return request.post('api/Production_ReportWorkOrder/AddBatckReportWorkOrder',params)
}

// 根据批量报工编码获取详情
export const getBatchReportOrderInfo = (params) => {
  console.log('changeWorkStatus发送参数:', params)
  const query = new URLSearchParams(params).toString();
  return request.get(`api/Production_ReportWorkOrder/GetBatchReportOrderInfo?${query}`)
}